package com.tac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tac.common.result.Result;
import com.tac.pojo.Occupant;
import com.tac.pojo.vo.OccupantVo;

import java.util.List;

public interface OccupantService extends IService<Occupant> {
    /**
     * 查看用户的常用入住人名字
     * @param uid
     * @return
     */
    public Result<List<String>> selectName(Long uid);
    /**
     * 查看用户的常用入住人和数量
     * @param uid
     * @return
     */
    public Result<OccupantVo> selectAll(Long uid);
    /**
     * 添加常用入住人
     * @param occupant
     * @param uid
     * @return
     */
    public Result inserte(Occupant occupant,Long uid);

    /**
     * 删除常用入住人
     * @param id
     * @return
     */
    public Result removeByOccupant(Long id);

    /**
     * 更新常用入住人
     * @param occupant
     * @return
     */
    public Result updateByOccupant(Occupant occupant);
}
